import {
	request
} from "../api.js"

// 下单预览
export const cloudOrderPreview = (data) => {
	return request("cloud/createOrderPreview", "POST", data)
}

// 提交订单
export const cloudCreateOrder = (data) => {
	return request("cloud/createOrder", "POST", data)
}

// 订单列表
export const userOrderList = (data) => {
	return request("user/orderList", "GET",data)
}

// 订单取消
export const userCancelOrder = (data) => {
	return request("user/cancelOrder", "POST", data)
}

// 订单删除
export const userDelOrder = (data) => {
	return request("user/delOrder", "POST", data)
}

// 订单详情
export const userOrderDetail = (data) => {
	return request("user/orderDetail", "GET", data)
}

// 申请售后
export const userAfterSale = (data) => {
	return request("user/after_sale", "POST", data)
}


